# 31ms 4176KB 
num=int(input())

lnum=[int(i) for i in input().split()]

lnum.sort()
length=lnum[0]
for i in range(1,num):
    length=length/2+lnum[i]/2

print(int(length))


